@import "mixin_helpers";

.scrollable {
  &::-webkit-scrollbar {
    height: 16px;
    width: 10px;
  }
  &::-webkit-scrollbar-button {
    &:start:decrement, &:end:increment {
      background-color: transparent;
      display: block;
      height: 0;
    }
  }
  &::-webkit-scrollbar-track {
    background-clip: padding-box;
    border: solid transparent;
    border-width: 0 0 0 4px;
  }
  &::-webkit-scrollbar-track-piece {
    background-color: transparent;
    @include border-radius(0);
  }
  &::-webkit-scrollbar:hover {
    background-color: #f3f3f3;
    border: 1px solid #dbdbdb;
  }
  &::-webkit-scrollbar-thumb {
    &:vertical, &:horizontal {
      background-color: #c6c6c6;
      @include border-radius(0);
    }
    background-color: rgba(0, 0, 0, 0.2);
    border: solid transparent;
    border-width: 0;
    @include box-shadow(inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07));
    background-clip: padding-box;
    &:hover {
      background-color: #949494;
    }
    &:active {
      background-color: rgba(0, 0, 0, 0.5);
      @include box-shadow(inset 1px 1px 3px rgba(0, 0, 0, 0.35));
    }
  }
}